import {
	getTabbarHeight
} from '@/plugins/utils';
let baseUrl = "";
let wsUrl = "";
if (process.env.NODE_ENV === 'development') {
	// 开发环境
	 baseUrl = 'https://ymgapi.jxbjcyjt.com';
	//baseUrl = 'http://192.168.1.114:8077';
	//baseUrl = 'http://192.168.8.119:8077';
	wsUrl = "wss://ymgapi.jxbjcyjt.com";
	//wsUrl="ws://127.0.0.1:8077";
} else if (process.env.NODE_ENV === 'production') {
	// 生产环境
	baseUrl = 'https://ymgapi.jxbjcyjt.com';
	//baseUrl = 'http://192.168.8.119:8077';

	wsUrl = "wss://api.demo.landio.cn";
}

let systemInfo = {
	...getTabbarHeight(),
	// #ifdef MP-ALIPAY
	navBarH: uni.getSystemInfoSync().statusBarHeight + uni.getSystemInfoSync().titleBarHeight, //菜单栏总高度--单位px
	titleBarHeight: uni.getSystemInfoSync().titleBarHeight, //标题栏高度--单位px
	// #endif
	// #ifndef MP-ALIPAY
	navBarH: uni.getSystemInfoSync().statusBarHeight + 44, //菜单栏总高度--单位px
	titleBarHeight: 44, //标题栏高度--单位px
	// #endif
};
// 平台
// #ifdef MP-WEIXIN
systemInfo.platform = 'weixin'
// #endif
// #ifdef MP-ALIPAY
systemInfo.platform = 'alipay'
// #endif
// #ifdef MP-TOUTIAO
systemInfo.platform = 'toutiao'
// #endif
// #ifdef APP
systemInfo.platform = 'app'
// #endif
console.log(systemInfo, 'systemInfo')
const courtConfig = {
	publicAppId: 'wx5c88ceb8dcb47d4b', //公众号appId
	baseUrl: baseUrl, //域名
	wsUrl: wsUrl,
	systemInfo: systemInfo, //系统信息
	mapData: {
		key: 'YCCBZ-2IN6J-N52FC-KGWCK-VELHZ-SWFWV', //地图key
		sk: '',
	},
	share: {
		title: "ldShop", //分享标题
		desc: "ldShop商城系统，是2022年全新推出的一款轻量级、高性能、前后端分离的电商系统，支持微信小程序 + H5+ 公众号 + APP", //分享详情
		link: "", // 分享链接
		imgUrl: "http://dgxj.oss-cn-chengdu.aliyuncs.com/img/defaultPage/logo.png", // 分享图
	},
	ossUrl: "http://dgxj.oss-cn-chengdu.aliyuncs.com/img/", //"http://dgxj.oss-cn-chengdu.aliyuncs.com/img/" // oss图片服务器路径
	ossUrl1: "https://dgxj.oss-cn-chengdu.aliyuncs.com/onebuy/", //"http://dgxj.oss-cn-chengdu.aliyuncs.com/img/" // oss图片服务器路径

};
export default Object.assign({}, courtConfig);
